// 
// Decompiled by Procyon v0.5.36
// 

package com.akamai.botman;

import java.util.*;

public final class ak
{
    public static java.lang.String a(final float[] array) {
        if (array == null) {
            return "(null)";
        }
        if (array.length == 0) {
            return "(empty)";
        }
        final java.lang.StringBuilder sb;
        (sb = new java.lang.StringBuilder()).append("(");
        for (int i = 0; i < array.length; ++i) {
            if (i > 0) {
                sb.append(',');
            }
            sb.append(java.lang.String.format("%.2f", array[i]));
        }
        sb.append(")");
        return sb.toString();
    }
    
    public static long a(final long n) {
        if (n == 0L) {
            return 0L;
        }
        final long n2 = n | n >>> 1;
        final long n3 = n2 | n2 >>> 2;
        final long n4 = n3 | n3 >>> 4;
        final long n5 = n4 | n4 >>> 8;
        final long n6 = n5 | n5 >>> 16;
        return n6 - (n6 >>> 1);
    }
    
    public static float a(final float[] array, float floatValue) {
        final int length;
        final java.lang.Float[] array2 = new java.lang.Float[length = array.length];
        for (int i = 0; i < length; ++i) {
            array2[i] = java.lang.Math.abs(array[i]);
        }
        java.util.Arrays.sort(array2);
        floatValue = array2[(int)java.lang.Math.floor((length - 1) * floatValue)];
        for (int j = 0; j < length; ++j) {
            if (java.lang.Math.abs(array[j]) < floatValue) {
                array[j] = 0.0f;
            }
        }
        return floatValue;
    }
    
    public static java.lang.String a(final float[] array, final float n, final float n2) {
        final int length = array.length;
        final java.lang.StringBuilder sb = new java.lang.StringBuilder();
        final float n3 = (n2 - n) / 60.0f;
        for (int i = 0; i < length; ++i) {
            char c = (char)((int)java.lang.Math.floor((array[i] - n) / n3) + 65);
            if (array[i] == n2) {
                c = '}';
            }
            sb.append((c == '\\') ? '.' : ((c == '.') ? '\\' : c));
        }
        return sb.toString();
    }
}
